<?php
namespace plugins\goods\model;
use think\Model;

class GoodsSpecListModel extends Model{	
//增加店铺的id	
	public function getStoreIdAttr($value,$data){		
		$goods = ( new \plugins\goods\model\GoodsModel )->get(['id'=>$data['gid']]);		
		return $goods->store_id;	
	} 	

	//增加商品名	
	public function getGoodsNameAttr($value,$data){		
		$goods = ( new \plugins\goods\model\GoodsModel )->get(['id'=>$data['gid']]);		
		return $goods->goods_name;	
	}
}
?>